csswidgetnode: Always return a valid style
authorBenjamin Otte <otte@redhat.com>
Fri, 13 Feb 2015 21:04:26 +0000 (22:04 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 Mar 2015 14:23:31 +0000 (15:23 +0100)
gtk/gtkcsswidgetnode.c

index d142c93e105b0173256d961874093422255bf7be..eb640ea6ac1175ed3271c2d4d4f96964d3a00373 100644 (file)
@@ -38,6 +38,9 @@ gtk_css_widget_node_update_style (GtkCssNode   *cssnode,
                                   GtkCssChange  pending_change,
                                   GtkCssStyle  *old_style)
 {
+  if (old_style == NULL)
+    return GTK_CSS_NODE_CLASS (gtk_css_widget_node_parent_class)->update_style (cssnode, pending_change, old_style);
+
   return NULL;
 }